package com.ygqh.baby.shiro.utils;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

import com.ygqh.baby.po.AdminUser;

public class SessionUtil {
	public static AdminUser getCurrentUser() {
		Subject subject = SecurityUtils.getSubject();
		AdminUser user  = (AdminUser) subject.getPrincipal();
		
		return user;
	}
}
